package com.example.myapplication;

import org.litepal.crud.DataSupport;

public class User extends DataSupport{
    private String  account;
    private String password;

    //身份标识 1位管理员 0为用户
    private int identity;

    //检测在线用户（即登录的用户）1为在线 0为离线
    private int condition;

    public User(String ID, String password, int identity){
        this.account = ID;
        this.password = password;
        this.identity = identity;
    }

    public void setID(String account){this.account = account;}
    public String getID(){return this.account;}
    public String getPassword(){return password;}
    public void setPassword(){this.account = account;}
    public void setCondition(int condition){this.condition = condition;}
    public int getCondition(){return condition;}
    public void setIdentity(int identity){this.identity = identity;}
    public int getIdentity(){return identity;}
}
